Question 1:

What is the output?

class Grandparent {
    public void Print() {
        System.out.println("Grandparent)");
    }
}
  
class Parent extends Grandparent {
    public void Print() {
        System.out.println("Parent");
    }
}
  
class Child extends Parent {
    public void Print() {
        super.Print(); 
        System.out.println("Child");
    }
}
  
public class Main {
    public static void main(String[] args) {
        Child c = new Child();
        c.Print();
    }
}

A
Parent

B
Child

C
Parent
Child

D
Grandparent
Parent
Child

E
(the code will not compile)